from django.urls import path
from .views import (
    SystemLogListView, SystemLogDetailView, SystemLogStatsView,
    SystemLogBatchDeleteView, SystemLogExportView
)

app_name = 'logs'

urlpatterns = [
    # 系统日志管理
    path('system-logs/', SystemLogListView.as_view(), name='system_log_list'),  # GET - 日志列表
    path('system-logs/<int:log_id>/', SystemLogDetailView.as_view(), name='system_log_detail'),  # GET - 日志详情
    path('system-logs/stats/', SystemLogStatsView.as_view(), name='system_log_stats'),  # GET - 日志统计
    path('system-logs/batch-delete/', SystemLogBatchDeleteView.as_view(), name='system_log_batch_delete'),  # DELETE - 批量删除
    path('system-logs/export/', SystemLogExportView.as_view(), name='system_log_export'),  # POST - 导出日志
]